client:client.o hash_compute.o auth.o sendRequest.o recvRequest.o client_gets_file.o client_pust_file.o recvfile.o recvn.o transfile.o config.o
	gcc client.o hash_compute.o auth.o sendRequest.o recvRequest.o client_gets_file.o client_pust_file.o recvfile.o recvn.o transfile.o config.o -o client -lpthread -lmysqlclient -lcrypt -lssl -lcrypto
client.o:client.c
	gcc -c client.c -o client.o -g -Wall
hash_compute.o:hash_compute.c
	gcc -c hash_compute.c -o hash_compute.o -g -Wall
auth.o:auth.c
	gcc -c auth.c -o auth.o -g -Wall
sendRequest.o:sendRequest.c
	gcc -c sendRequest.c -o sendRequest.o -g -Wall
recvRequest.o:recvRequest.c
	gcc -c recvRequest.c -o recvRequest.o -g -Wall
client_gets_file.o:client_gets_file.c
	gcc -c client_gets_file.c -o client_gets_file.o -g -Wall
client_pust_file.o:client_pust_file.c
	gcc -c client_pust_file.c -o client_pust_file.o -g -Wall
recvfile.o:recvfile.c
	gcc -c recvfile.c -o recvfile.o -g -Wall
recvn.o:recvn.c
	gcc -c recvn.c -o recvn.o -g -Wall
transfile.o:transfile.c
	gcc -c transfile.c -o transfile.o -g -Wall
config.o:config.c
	gcc -c config.c -o config.o -g -Wall
clean:
	rm -f *.o client
